<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Commodity extends Model
{
    protected $table = 'commoditys';

    public function Category()
    {
        return $this->belongsTo('App\Models\Category', 'category_id');
    }

    public function CommoditySeries()
    {
       return $this->hasMany(CommoditySeries::class);
    }
}
